﻿ using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using eeenno.ReaderEngine.Utilities;

namespace eeenno.SpeeedReaderUI.Forms
{
    public partial class SettingsForm : Form
    {
        private Form form = null;

        public SettingsForm()
        {
            InitializeComponent();
        }

        private void menuItem_close_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button_appearance_Click(object sender, EventArgs e)
        {
            form = new SettingsAppearanceForm();
            ShowForm();
        }

        private void button_behavior_Click(object sender, EventArgs e)
        {
            form = new SettingsBehaviorForm();
            ShowForm();
        }

        private void button_social_Click(object sender, EventArgs e)
        {
            form = new SettingsSocialForm();
            ShowForm();
        }

        private void button_cache_Click(object sender, EventArgs e)
        {
            form = new SettingsCacheForm();
            ShowForm();
        }

        private void ShowForm()
        {
            if (form != null)
            {
                form.ShowDialog();
                form.Dispose();
            }
        }
    }
}